package com.ys.everydaynews.ui.main.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class HomePageAdapter(fm: FragmentManager, fragments: ArrayList<Fragment>) :
    FragmentPagerAdapter(fm) {

    private val fragmentList: ArrayList<Fragment> = fragments

    override fun getCount(): Int = fragmentList.size

    override fun getItem(position: Int): Fragment = fragmentList[position]

}